package com.caijin.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.caijin.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 教师信息表
 * </p>
 *
 * @author Peas
 * @since 2021-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_teacher")
@ApiModel(value = "Teacher对象", description = "教师信息表")
public class Teacher extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教师工号，主键，唯一标识")
    @TableId(value = "tno", type = IdType.INPUT)
    private Long tno;

    @ApiModelProperty(value = "教师姓名，最多6个字符（包括汉字）")
    private String tname;

    @ApiModelProperty(value = "系别编号")
    private Long departmentId;

    @ApiModelProperty(value = "专业编号")
    private Long majorId;

    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @ApiModelProperty(value = "性别 0男 1女 2保密")
    private Integer sex;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称，最多8个字符")
    private String nickname;

    @ApiModelProperty(value = "生日")
    private Date birth;

    @ApiModelProperty(value = "盐值")
    private String salt;

    @ApiModelProperty(value = "状态 0锁定 1有效")
    private Integer status;

    @ApiModelProperty(value = "密码")
    private String password;

}
